<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<title>幸运大抽奖^_^</title>
	<%@ include file="layouts/top.jsp"%>
	<script type="text/javascript">
		$(function() {
			$("#winner").hide();
			$("#winner_text").val("");
			$("#drawTr").show();
		});
		
		function draw() {
			$.post(getHttpRequestPath("record/getDraw"), {
			}, function(typesString) {
				$("#winner_text").val(typesString);
				$("#drawTr").hide();
				$("#winner").show();
			}).error(_error);
		}
	</script>
</head>
<body>
	<div align="center">
		<table style="width:100%; text-align: center;">
			<tr><td><B>幸运大抽奖!</B></td></tr>
			<tr id="drawTr"><td><input type="button" value="抽奖" onclick="draw()"></td></tr>
			<tr id="winner"><td>恭喜获奖者：<input type="text" id="winner_text" style="border: 0;" readonly="readonly" /></td></tr>
		</table>
	</div>
</body>

</html>